<#include "/freemarker/frame.ftl"> 
 <@frame title="新增企业"> 
   		<!--start-->
		<div class="contentcontainer">
            <div class="headings altheading">
                <h2>新增企业</h2>
            </div>
            <div class="contentbox">
				<@s.form id="enterpriseForm" action="addEnterprise" method="post" namespace="/mgr/enterprise" theme="simple">
					<div class="spacer clear">
                		<h3 class="greentxt">企业基本资料</h3>
            		</div>
            		
					<div style="width:950px">
					<@component.textfield label="企业名称"  tip="*必填" cssClass="validate[required] inputbox smallbox" name="enterprise.name"></@component.textfield>
					<@component.popSelect cssClass="validate[required] inputbox smallbox" id="dwxz" tip="点击选择" readOnly="true"
						parameter='{"title":"单位性质选择","src":"mgr/sys/pop_list_param?paraType=type","width":700,"height":350}'
					 name="enterprise.enterpriseType.id"
					 fieldName="enterprise.enterpriseType.desc"
					  label="单位性质"></@component.popSelect>
					<@component.popSelect cssClass="validate[required] inputbox smallbox" id="pcs" tip="点击选择" readOnly="true"
						parameter='{"title":"所属辖区派出所","src":"mgr/sys/pop_list_param?paraType=pcsdm","width":700,"height":350}'
					 name="enterprise.pcs.id" fieldName="enterprise.pcs.desc" label="所属辖区派出所"></@component.popSelect>
					
					<@component.textfield cssClass="inputbox smallbox" name="enterprise.representative" label="法人代表"></@component.textfield>
					<@component.textfield cssClass="inputbox smallbox" name="enterprise.contact" label="联系方式"></@component.textfield>
					<@component.textfield cssClass="inputbox" name="enterprise.introduce" label="简介"></@component.textfield>
					<@component.textfield cssClass="inputbox" name="enterprise.address" label="地址"></@component.textfield>
					<@component.textfield cssClass="inputbox" name="enterprise.remark" label="备注"></@component.textfield>
					</div>
					
					
					<div class="spacer clear">
                		<h3 class="greentxt">管理账号资料</h3>
            		</div>
					<div style="width:950px">

					<@component.textfield label="用户名" tip="*必填" cssClass="validate[required,length[0,20],custom[onlyLetterNumber]] inputbox smallbox" name="hr.username"></@component.textfield>
					<@component.textfield tip="*必填" cssClass="validate[required] inputbox smallbox" name="hr.password" label="密码"></@component.textfield>
					<@component.textfield cssClass="inputbox smallbox" name="hr.name" label="姓名"></@component.textfield>
					<@component.textfield cssClass="validate[custom[cnmobilePhone]] inputbox smallbox" name="hr.serailNumber" label="手机号码"></@component.textfield>
					</div>
					<div class="clear" style="clear:both"></div>
					<div class="extrabottom" style="text-align: center ">	
					<@s.submit cssClass="btn" label="提交" value="提交"></@s.submit>
					</div>
				</@s.form>
            </div>
        </div>
        <!--end-->
 </@frame> 